package model;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Train {
	//编号
	private int id;
	//培训名称
	private String trainname;
	//地点
	private String address;
	//费用
	private double money;
	//主办单位
	private String organization;
	//性质
	private TrainProperty trainProperty;
	//类别
	private TrainType trainType;
	//方式
	private TrainWay trainWay;
	//负责人
	private Emp manager;
	//开始时间
	private Date starttime;
	//结束时间
	private Date endtime;
	private List<TrainCourse> trainCourse;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTrainname() {
		return trainname;
	}
	public void setTrainname(String trainname) {
		this.trainname = trainname;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public String getOrganization() {
		return organization;
	}
	public void setOrganization(String organization) {
		this.organization = organization;
	}
	public TrainProperty getTrainProperty() {
		return trainProperty;
	}
	public void setTrainProperty(TrainProperty trainProperty) {
		this.trainProperty = trainProperty;
	}
	public TrainType getTrainType() {
		return trainType;
	}
	public void setTrainType(TrainType trainType) {
		this.trainType = trainType;
	}
	public TrainWay getTrainWay() {
		return trainWay;
	}
	public void setTrainWay(TrainWay trainWay) {
		this.trainWay = trainWay;
	}
	public Emp getManager() {
		return manager;
	}
	public void setManager(Emp manager) {
		this.manager = manager;
	}
	public Date getStarttime() {
		return starttime;
	}
	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}
	public Date getEndtime() {
		return endtime;
	}
	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	public List<TrainCourse> getTrainCourse() {
		return trainCourse;
	}
	public void setTrainCourse(List<TrainCourse> trainCourse) {
		this.trainCourse = trainCourse;
	}
	
	@Override
	public String toString() {
		return "Train [id=" + id + ", trainname=" + trainname + ", address="
				+ address + ", money=" + money + ", organization="
				+ organization + ", trainProperty=" + trainProperty
				+ ", trainType=" + trainType + ", trainWay=" + trainWay
				+ ", manager=" + manager + ", starttime=" + starttime
				+ ", endtime=" + endtime + ", trainCourse=" + trainCourse + "]";
	}	
}
